/*
 * The UserManager.java created for spikeCASservice projects. 
 */
package com.google.code.sip.ucenter.service;

import java.util.List;

import com.google.code.sip.core.dao.Page;
import com.google.code.sip.ucenter.model.CreditType;

/**
 * Describes the <tt>UserManager</tt> object's responsibility, collaboration,
 * relationship and usage.
 * 
 * @author Liuye
 * @version 1.0 2010-5-26
 */
public interface CreditTypeManager {
	CreditType getCreditType(String creditTypeId);

	CreditType getCreditTypeByName(String creditTypeName);

	Page<CreditType> getAllCreditTypes(Page<CreditType> page);

	List<CreditType> getAllCreditTypes();

	void saveCreditType(CreditType creditType);

	void deleteCreditType(String creditTypeId);

	List<String> getAllCreditTypeNames();

	boolean isTransCreditType(String creditTypeId);

	boolean isTransCreditType(CreditType creditType);

	boolean isCreditTypeUsed(String creditTypeId);

	boolean isCreditTypeUsed(CreditType creditType);
}
